package com.deke.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @author     ：Username 刘亦辰（59372312@qq.com）
 * @date       ：Created in 2022/11/30 21:37
 * @description：
 * @modified By：
 * @version:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {
    private Integer code;
    private String msg;
    private T data;


    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code, T data) {
        this.code = code;
        this.data = data;
    }

    public Result(T data) {
        this.data = data;
    }
}